import request from "@/utils/request";

// 查询技师佣金发放记录列表
export function listCommissionRecord(query) {
  return request({
    url: "/service/commissionRecord/list",
    method: "get",
    params: query,
  });
} // 查询技师佣金发放记录列表
export function technicianMoneyStatistics(query) {
  return request({
    url: `/system/user/technician/${query?.userId}`,
    method: "get",
    params: query,
  });
}

// 查询技师佣金发放记录详细
export function getCommissionRecord(id) {
  return request({
    url: "/service/commissionRecord/" + id,
    method: "get",
  });
}

// 新增技师佣金发放记录
export function addCommissionRecord(data) {
  return request({
    url: "/service/commissionRecord",
    method: "post",
    data: data,
  });
}

// 修改技师佣金发放记录
export function updateCommissionRecord(data) {
  return request({
    url: "/service/commissionRecord",
    method: "put",
    data: data,
  });
}

// 删除技师佣金发放记录
export function delCommissionRecord(id) {
  return request({
    url: "/service/commissionRecord/" + id,
    method: "delete",
  });
}
